package com.fa4j.system.login.service;

import com.fa4j.common.web.model.ClientInfo;
import com.fa4j.system.account.model.Account;
import com.fa4j.system.login.model.LoginSession;

import java.util.Optional;

public interface LoginSessionService {

    LoginSession createSession(Account account, ClientInfo clientInfo);

    void remove(String accessToken);

    Optional<LoginSession> get(String accessToken);

    void removeAccountSession(Long accountId);

    void refreshSession(Long accountId);
}
